package com.yunjian.core.busi.service;

import com.github.pagehelper.PageInfo;
import com.yunjian.core.busi.model.EmployeeExample;
import com.yunjian.core.busi.vo.EmployeeVo;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author tsh721@126.com
 */
@Service
public interface EmployeeVoService {

    /**
     * 分页检索
     *
     * @param page
     * @param rows
     * @param example 检索条件
     * @return
     */
    PageInfo<EmployeeVo> selectPagedByExample(int page, int rows, EmployeeExample example);
    
    PageInfo<EmployeeVo> emptyPaged(int page, int rows);
    
    /**
     * 分页检索
     *
     * @param page
     * @param rows
     * @param example 检索条件
     * @return
     */
    List<EmployeeVo> selectVo(EmployeeExample example);
    
    /**
     *
     * @param userId
     * @return 
     */
    EmployeeVo selectByPrimaryKey(String userId);
}
